<?php
	session_start();
	if(!isset($_SESSION["nick"]))
	{
		header("location: login.php");
	}
	echo "Bienvenido"." ".$_SESSION['nick'];
?>

<html>

	<head>
		<link href="elemento3.css" type="text/css" rel="stylesheet">
		<title>Krusty Burguer</title>
		<meta charset="utf-8">
		
		<style type="text/css">
				body{
					color:#5A4848;
					background-image: url("fondo.png");
					background-repeat: no-repeat;
					background-position:0 0 0 0;
					opacity: 0.97;
				}
		</style>
	</head>  
	
	<body>
		<div id="cabecera">
			<h1>KRUSTY BURGUER</h1>
				<img id="logo" width='10%' height='10%' src='logo.gif'>
		</div>
		
		<div id="fecha">
			<b>
				<script type="text/javascript">
				/*Reloj de la pagina*/
				function startTime(){
				today=new Date();
				h=today.getHours();
				m=today.getMinutes();
				s=today.getSeconds();
				m=checkTime(m);
				s=checkTime(s);
				document.getElementById('reloj').innerHTML=h+":"+m+":"+s;
				t=setTimeout('startTime()',500);}
				function checkTime(i)
				{if (i<10) {i="0" + i;}return i;}
				window.onload=function(){startTime();}
				</script>

		<div id="reloj" style="font-size:20px;"></div>
			</b> 
		</div>
		
		<div id="menu">
			<ul>
			<b>
				<li><a href='cpollos.php'>Inicio</a></li>
				<li><a href='carrito.php'>Producto</a></li>
				<li><a href='     '>Carrito</a></li> 
			</b>
			</ul>
		</div>
		
		<div id="menu2">
			<h4>Indice</h4>
			<div >
				<li class="b"><a href='carrito.php'>Producto</a></li>
				<li class="b"><a href='   '>Carrito</a></li>
			</div>
		</div>
		
		<div id="centroprincipal">
			<div >
	
<table border="1">
<tr>

<th>
     <table border="1">
<tr>

<th>
      <table border="1" width="80%">
	  <caption><b>BEBIDAS</b></caption>
<tr>
<th><img src=agua.jpg width="100px" height="50px"></th>
<th><img src=cerveza.jpg width="100px" height="50px"></th>
<th><img src=cocacola.jpg width="100px" height="50px"></th>
<th><img src=fanta.jpg width="100px" height="50px"></th>
<th><img src=nestea.jpg width="100px" height="50px"></th>
</tr>
<tr>
<th>0.50€</th>
<th>0.80€</th>
<th>1.00€</th>
<th>1.00€</th>
<th>1.00€</th>
</tr>
<tr>
<th>Agua <br><input type="button" value="Añadir"></input></th>
<th>Cerveza <br><input type="button" value="Añadir"></input></th>
<th>Coca cola <br><input type="button" value="Añadir"></input></th>
<th>Fanta <br><input type="button" value="Añadir"></input></th>
<th>Nestea <br><input type="button" value="Añadir"></input></th>
</tr>
</table>
<br>
<br>
</th>

<th>
<table border="1" >
<caption><b>COMIDAS</b></caption>
<tr>
<th><img src=alitas-pollo.jpg width="100px" height="50px"></th>
<th><img src=croquetas.jpg width="100px" height="50px"></th>
<th><img src=hamburguesa.jpg width="100px" height="50px"></th>
<th><img src=papas-bravas.jpg width="100px" height="50px"></th>
<th><img src=tacos.jpg width="100px" height="50px"></th>
</tr>
<th>1.50€</th>
<th>1.50€</th>
<th>4.50€</th>
<th>1.50€</th>
<th>2.00€</th>
</tr>
<tr>
<th>Alitas de pollo <br><input type="button" value="Añadir"></input></th>
<th>Croquetas <br><input type="button" value="Añadir"></input></th>
<th>Hamburguesa <br><input type="button" value="Añadir"></input></th>
<th>Papas bravas <br><input type="button" value="Añadir"></input></th>
<th>Tacos <br><input type="button" value="Añadir"></input></th>
</tr>
</table>

<br>
<br>
</th>

</tr>

<tr>
<th>

<table border="1">
<caption><b>SALSAS</b></caption>
<tr>
<th><img src=alioli.jpeg width="100px" height="50px"></th>
<th><img src=Mayonesa.jpg width="100px" height="50px"></th>
<th><img src=mojo-picon.jpg width="100px" height="50px"></th>
<th><img src=salsa-roquefort.jpg width="100px" height="50px"></th>
<th><img src=salsa-rosa.jpg width="100px" height="50px"></th>
</tr>
<tr>
<th>1.20€</th>
<th>1.20€</th>
<th>1.20€</th>
<th>1.20€</th>
<th>1.20€</th>
</tr>
</tr>
<tr>
<th>Alioli <br><input type="button" value="Añadir"></input></th>
<th>Mayonesa <br><input type="button" value="Añadir"></input></th>
<th>Mojo picon <br><input type="button" value="Añadir"></input></th>
<th>Roquefort <br><input type="button" value="Añadir"></input></th>
<th>Rosa <br><input type="button" value="Añadir"></input></th>
</tr>
</table>

</th>
<th>
<table border="1">
	  <caption><b>POSTRES</b></caption>
<tr>
<th><img src=heladochoco.jpg width="100px" height="50px"></th>
<th><img src=yogurfresa.jpg width="100px" height="50px"></th>
<th><img src=flanes.jpg width="100px" height="50px"></th>
<th><img src=arrozconleche.jpg width="100px" height="50px"></th>
<th><img src=mousse.jpg width="100px" height="50px"></th>
</tr>
<tr>
<th>1.50€</th>
<th>1.00€</th>
<th>1.00€</th>
<th>1.50€</th>
<th>1.50€</th>
</tr>
<tr>
<th>Helado chocolate <br><input type="button" value="Añadir"></input></th>
<th>Yogur de fresa <br><input type="button" value="Añadir"></input></th>
<th>Flan de vainilla <br><input type="button" value="Añadir"></input></th>
<th>Arroz con leche <br><input type="button" value="Añadir"></input></th>
<th>Mousse de chocolate <br><input type="button" value="Añadir"></input></th>
</tr>
</table>
</center>
</th>
</tr>
</table>
</center>
</th>
</tr>
</table>
			
		</div> 
		
		<div id="pie">
		
			 <p>
				<b>Producto registrado por la empresa moe s family.</b>
			</p>
			  
			<p>
		<script type="text/javascript">
			
			var date = new Date();
			var d  = date.getDate();
			var day = (d < 10) ? '0' + d : d;
			var m = date.getMonth() + 1;
			var month = (m < 10) ? '0' + m : m;
			var yy = date.getYear();
			var year = (yy < 1000) ? yy + 1900 : yy;
			document.write(day + "/" + month + "/" + year);
		
		</script>
			 </p>
			 
		</div>
	</body>
</html>